package com.trkj.dao.hjj;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Shift;

//班次DAO
public interface ShiftDAO extends CrudRepository<Shift, Long>{
	@Query("from Shift s")
	public List<Shift> pageFindAllShift(Pageable p);
	
	@Query("from Shift s where s.shiftName like ?1")
	public List<Shift> pageShiftByName(String shiftName,Pageable p);
}
